/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Microsoft
 * Date: 2022-12-30
 * Time: 16:31
 */
public interface TestInterface {
    public static final String name = "123";

    public abstract void func();

    default public void func2() {
        System.out.println("默认的");
    }
}
class React implements TestInterface{

    @Override
    public void func() {

    }

    @Override
    //default修饰的方法，可以选择重写或者不重写
    public void func2() {
        TestInterface.super.func2();
    }
}
class Flower1 implements TestInterface{

    @Override
    public void func() {
        System.out.println("123");
    }
}
